﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MuaChung.Models.WEBSERVICE>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditService
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EditService</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Thông tin web service</legend>                        
            <%: Html.HiddenFor(model => model.ID) %>
            <%: Html.HiddenFor(model => model.Ma_WS) %>
            <%: Html.HiddenFor(model => model.LoaiWS) %>            
            <table>
            <tr>
            <td class="editor-label">
                Đường dẫn đến dịch vụ:
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.URL) %>
                <%: Html.ValidationMessageFor(model => model.URL) %>
            </td>
            </tr>
            <tr>
            <td class="editor-label">
                Tên dịch vụ:
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Ten) %>
                <%: Html.ValidationMessageFor(model => model.Ten) %>
            </td>
            </tr>
            <tr>
            <td class="editor-label">
                Tên đăng nhập dịch vụ:
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.WSUSERNAME) %>
                <%: Html.ValidationMessageFor(model => model.WSUSERNAME) %>
            </td>
            </tr>
            <tr>
            <td class="editor-label">
                Mật khẩu:
            </td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.WSPASSWORD) %>
                <%: Html.ValidationMessageFor(model => model.WSPASSWORD) %>
            </td>
            </tr>
            <tr>
            <td class="editor-label">
                Doanh Nghiệp cung cấp:
            </td>
            <td class="editor-field">
                <div id="selectExistingDN">
                    <script type="text/javascript">
                        GetContent("/DoanhNghiep/SelectListDoanhNghiep", "selectExistingDN");
                    </script>
                </div>
            </td>
            </tr>
            <tr>
            <td class="editor-label">
                Loại dịch vụ:
            </td>
            <td class="editor-field">
                <select name="type">
                    <option value="biz">Doanh Nghiệp Biz</option>
                    <option value="vanchuyen">Vận chuyển</option>
                    <option value="nganhang">Ngân Hàng</option>
                </select>
            </td>
            </tr>
            </table>           
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Trở lại danh sách", "ListAllService") %>
    </div>

</asp:Content>

